package com.meevle.midiproxy;

/**
 * MidiData
 * 
 * Packages up all basic MIDI data containing controller or note events
 * 
 * @author Mike Creighton
 *
 */
public class MidiData {
	
	public static final int TYPE_NOTE_ON = 0;
	public static final int TYPE_NOTE_OFF = 1;
	public static final int TYPE_CONTROLLER = 2;
		
	private int channel;
	private byte id;
	private byte value;
	private int type;
	
	public MidiData(int type, int channel, byte id, byte value)
	{
		this.channel = channel;
		this.id = id;
		this.value = value;
		this.type = type;
	}
	
	public int getType()
	{
		return type;
	}
	
	public int getChannel()
	{
		return channel;
	}
	
	public byte getId()
	{
		return id;
	}
	
	public byte getValue()
	{
		return value;
	}
}
